package com.kehao.leetcode.basic.math;

public class Pow3Solution {
    public boolean isPowerOfThree(int n) {
        return Math.log(n)/ Math.log(3)==(int)(Math.log(n)/ Math.log(3));
    }
}
